//
//  Plan.h
//  WonderMobSDK
//
//  Created by zero on 2020/3/3.
//

#import <Foundation/Foundation.h>

#import "WMGameConfig.h"
#import <MTGSDKBidding/MTGBiddingRequest.h>

NS_ASSUME_NONNULL_BEGIN

@interface WMPlan : NSObject

@property (nonatomic, copy) NSString* idx;

@property (nonatomic, assign) NSUInteger type;

@property (nonatomic, assign) NSInteger limit;

@property (nonatomic, assign) NSInteger repellingTime;

@property (nonatomic, assign) NSInteger hierarchy;

@property (nonatomic, assign) NSInteger times;

@property (nonatomic, assign) NSUInteger impression_time_limit;

@property (nonatomic, copy) NSString* posId;

@property (nonatomic, copy) NSString* posName;

@property (nonatomic, assign) NSUInteger basePrice; // 0 没底价 1 有底价 2 竞价

@property (nonatomic, assign) NSUInteger biddingPrice;

@property (nonatomic, assign) NSTimeInterval timestamp;

@property (nonatomic, assign) BOOL isValid;

@property (nonatomic, strong) NSString *adTempVaild;

- (BOOL)isLocalAd;

- (BOOL)isInRepellingTime;

- (BOOL)isExceedLimit;

@end


@interface WMPlans : NSObject

@property (nonatomic, copy) NSString* plansId;

@property (nonatomic, copy) NSString* posName;

@property (nonatomic, assign) NSUInteger posType;

@property (nonatomic, assign) NSInteger totalCacheCount;

@property (nonatomic, assign) NSInteger nonPriceCacheCount;

@property (nonatomic, strong) NSMutableArray<NSMutableArray<WMPlan *> *>* hierarchies;

@end


NS_ASSUME_NONNULL_END
